package com.example.demo.design.strategy;

import org.springframework.stereotype.Component;

/**
 * @className: ZhangSanHandle
 * @copyright: Copyright (C) 2019-2028, Inc. All rights reserved.
 * @company: 中兴新云.财务云
 * @author: 刘凯
 * @date: 2024/7/1
 * @Description: com.example.demo.handle
 */
@Component
public class ZhangSanHandle extends Handel{
    @Override
    public void aaa(String name) {
        System.out.printf("执行了"+ ZhangSanHandle.class.getSimpleName()+"入参为"+name);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("张三", this);
    }
}
